<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<script>
    //1.定义函数的方式:function
    const  aaa = function () {
        
    }
    //2.对象字面量定义函数
    const obj = {
        bbb() {

        }
    }
    //3.ES6中箭头函数
    const ccc = () => {

    }
</script>
</body>
</html>